package cn.gson.crm.controller;

import java.util.List;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import cn.gson.crm.model.dao.JobFollowDao;
import cn.gson.crm.model.entity.Attachs;

/**
 * 显示所有附件
 */
@WebServlet("/all/view/attach")
public class AllViewAttach extends BaseServlet {
	private static final long serialVersionUID = 1L;
    private JobFollowDao jobDao = new JobFollowDao();
	/**
	 * 附件的调用
	 */
	@Override
	protected void get(HttpServletRequest request, HttpServletResponse response) throws Exception {
		super.get(request, response);
		List<Attachs> attachList = jobDao.showAllmianshiAttach("job_mianshi");
		request.setAttribute("attachList", attachList);
		forward("all-view-attach.jsp");
	}
}
